<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>审核完善信息</title>
<script type="text/javascript">
	function checkChange(obj) {
		if ("checkYes" == obj.id) {
			document.getElementById("checkText").value = "审核通过，可以开发票。";
		} else {
			document.getElementById("checkText").value = "审核失败，不能开发票！";
		}
	}
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate"
			action="checkApplyinvoiceAction.action" method="post"
			onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> <input
				name="id" value="<s:property value='#request.applyinvoice.id' />"
				type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<br>
				<br>
				<table>
					<tr>
						<td>发票信息</td>
					</tr>
					<tr>

						<td><HR align=left width="500%" SIZE=2 /></td>

					</tr>
					<tr>
						<td>充值记录：</td>
						<td>${applyinvoice.payId}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>金额：</td>
						<td>${applyinvoice.applayMoney}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>发票抬头：</td>
						<td>${applyinvoice.companyName}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>发票邮寄地址：</td>
						<td>${applyinvoice.sendAddress}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>收件人姓名：</td>
						<td>${applyinvoice.receiverName}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>收件人电话：</td>
						<td>${applyinvoice.receiverMobile}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>创建时间：</td>
						<td>
							<s:date name="#request.applyinvoice.createTime" format="yyyy-mm-dd hh:mm:ss"/>
						</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>审核状态：</td>
						<td>	
							<s:if test="#request.applyinvoice.checkStatus==0">审核失败</s:if>
							<s:elseif test="#request.applyinvoice.checkStatus==1">
								<span style="color: blue">审核通过</span>
							</s:elseif>
							<s:elseif test="#request.applyinvoice.checkStatus==2">
								<span style="color: red">未审核</span>
							</s:elseif>
						</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td><HR align=left width="500%" SIZE=2 /></td>

					</tr>
					<tr>
						<td>审核内容</td>
						<td>${applyinvoice.checkContents}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>操作记录：</td>
						<td>${applyinvoice.dealRecord}</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					
					<tr>
						<td><HR align=left width="500%" SIZE=2 /></td>
					</tr>

					<tr>
						<td><input type="radio" name="checkStatus" value="1"
							checked="checked" id="checkYes" onclick="checkChange(this)" />审核通过</td>
						<td><input type="radio" name="checkStatus" value="0"
							id="checkNo" onclick="checkChange(this)" />审核不通过</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>&nbsp;&nbsp;审核信息：</td>
						<td><textarea class="required" name="checkContents" rows="2"
								cols="102" id="checkText"></textarea></td>
					</tr>
				</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">审核</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>
